package com.zlm.common.util;


import com.zlm.common.support.AliMesgSender;

public class SmsUtils {

	//阿里的短信平台验证码
	public static String alisend(String phone) throws Exception {
		String dynamicCode= AliMesgSender.sendCode(phone);
		return dynamicCode;
	}
	//添加人才成功通知人才
	public static String alisend(String phone, String name,String appurl) throws Exception {
		String message= AliMesgSender.sendUnderling(phone,name,appurl);
		return message;
	}



	public static void main(String[] args) {
		try {
			// 仅发送验证码
//			SmsCtcOssSender smsSender = SmsCtcOssSender.getInstance();
			String dynamicCode=alisend("18817311612");
			System.out.println(dynamicCode);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}